﻿using System;

namespace Narwhunderful.Aphelia.Framework.UI
{

    public class NavigatedEventArgs : NavigatingEventArgs
    {

        IUINavigableComponent _newComponent;
        public IUINavigableComponent NewComponent
        {
            get
            {
                return _newComponent;
            }
            protected internal set
            {
                _oldComponent = value;
            }
        }

        IUINavigableComponent _oldComponent;
        public IUINavigableComponent OldComponent
        {
            get
            {
                return _oldComponent;
            }
            protected internal set
            {
                _oldComponent = value;
            }
        }

        public NavigatedEventArgs(NavigationDirection direction, IUINavigableComponent newComponent, IUINavigableComponent oldComponent) 
            : base(direction)
        {
            _newComponent = newComponent;
            _oldComponent = oldComponent;
        }

    }

}
